LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Compress(Byte[],Int32) Method
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class > Compress Method : Compress(Byte[],Int32) Method



data
Array of bytes that holds the data to be compressed.
dataIndex
Index into data where the data starts.
data
Array of bytes that holds the data to be compressed.
dataIndex
Index into data where the data starts.
Does buffer-to-buffer JPEG or LEAD CMP compression.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Compress( _
   ByVal data() As Byte, _
   ByVal dataIndex As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim data() As Byte
Dim dataIndex As Integer
 
instance.Compress(data, dataIndex)
C# 
public void Compress( 
   byte[] data,
   int dataIndex
)
C++/CLI 
public:
void Compress( 
   array<byte>^ data,
   int dataIndex
) 

Parameters

data
Array of bytes that holds the data to be compressed.
dataIndex
Index into data where the data starts.

Example

Remarks

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also